사이트 내 전체검색
한글자씩 글씨색이 지정한 색으로 변해요(네온효과)
https://cmd.kr/javascript/260 URL이 복사되었습니다.

본문

<FONT face="TTche"><span style="font-size:9pt;">
<script language="JavaScript">
<!--
var message="옆으로 한칸씩 글자색이 변하네요" //내용삽입
var neonbasecolor="red" //처음에 나타날 글자색
var neontextcolor="blue" //네온효과를 줄 색상지정
var flashspeed=200 //네온효과 속도지정 수치가 낮아지면 빨라짐
var n=0
if (document.all){
document.write('<font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight">'+message.charAt(m)+'</span>')
document.write('</font>')
var tempref=document.all.neonlight
}
else
document.write(message)
function neon(){
if (n==0){
for (m=0;m<message.length;m++)
tempref[m].style.color=neonbasecolor
}
tempref[n].style.color=neontextcolor
if (n<tempref.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",1500)
return
}
}
function beginneon(){
if (document.all)
flashing=setInterval("neon()",flashspeed)
}
beginneon()
//-->
</script></span></FONT>

출처 : http://www.aircon1004.com/data/bbs/board.php?bo_table=pds1&wr_id=72

댓글목록

등록된 댓글이 없습니다.

831 (9/17P)

Search

Copyright © Cmd 명령어 18.191.68.50